package com.besttone.model;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.besttone.common.StaticConstantType;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Page;

public class BstReceiveReserve extends Model<BstReceiveReserve> {
    private static Log _log = LogFactory.getLog(BstReceiveReserve.class);
    public static BstReceiveReserve dao = new BstReceiveReserve();

    public Page<BstReceiveReserve> getNotSyncData(int pageNumber) {
	String select = "select h.id as id,h.name as cust_name,h.sex as cust_sex,h.phone as cust_phone,h.reserveCode as reserve_code,h.createTime as create_time";
	String sqlExceptSelect = " from bst_receive_reserve h where h.is_sync="
		+ StaticConstantType.IS_NOT_SYNC;
	return dao.use("bstDB").paginate(pageNumber, 10, select,
		sqlExceptSelect);
    }
}
